import { Config } from "./Config";

// tslint:disable-next-line: class-name
export class nodered_settings {
    public flowFile:string = "flows.json";
    public settingsFile:string = "nodered_settings.js";
    public nodesDir:string = ".";
    public userDir:string = ".";

    public credentialSecret: string | boolean = false;
    public adminAuth: any = null;
    public httpNodeAuth: any = null;
    public httpStaticAuth: any = null;
    public httpNodeMiddleware:any;

    public httpAdminRoot:string = "/";
    public httpNodeRoot:string = "/";
    public storageModule: any = null;
    public uiPort:number = Config.port;
    public mqttReconnectTime:number = 15000;
    public serialReconnectTime:number = 15000;
    public debugMaxLength:number = 1000;
    public functionGlobalContext:any = { process: process };
    public paletteCategories:string[] = ["workflow", "form", "robot", "api", "smtpserver", "subflows", "input", "output", "function",
    "social", "mobile", "storage", "analysis", "advanced"];
    public debugUseColors:boolean = true;
    public flowFilePretty:boolean = true;
    public logging:any = {
        console: {
            level: "warn",
            metrics: false,
            audit: false
        }
    };

    // adminAuth: import("c:/code/OpenFlow/OpenFlowNodeRED/src/node-red-contrib-auth-google").noderedcontribauthgoogle;
    // constructor() {
    // }
}
